<link rel="stylesheet" href="/styles/thickbox.css" />
<script type="text/javascript" src="/scripts/thickbox.js"></script>
<table border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td valign="top"><div class="Col">
<tal:block tal:content="structure php: this.partial('myactivity/myactivity.html')"/>
</div></td>
	<td valign="top"><div class="Col">
<div class="ModuleBlock">
<h1>
<label>Photos / Videos</label>
<div><a href="/album/settings/album-settings"  ><img src="/images/SettingsIcon.png" border="0" alt="Settings" title="Settings" align="top" class="SetIcon"/></a>
<a id="create" href="javascript:void(0);" onclick="createAlbum();"><img src="/images/CreateAddIcon.png" alt="Create" width="15" height="15"  border="0"  align="top" class="SetIcon" title="Create"/></a>
<a href="#"><img src="/images/pie-chartIcon.png" alt="Activity Summary" width="14" height="14"  border="0"  align="top" class="SetIcon" title="Activity Summary"/></a></div>
<div class="wid186"><input type="text" value="search" /><a href="#"><img src="/images/ModSearchIcon.png" border="0" class="SerImg" /></a></div>
</h1>
<div class="clear"></div>
<ul class="ModuleMenu">
<li><a href="/album/index/album-personal">Personal</a> </li>
<li><a href="/album/index/album-share" class="active">Shared</a> </li>
</ul>
<div>
	<select class='select_fl_b1' id='id_combo'> 
		<option value='1'>all</option>
		<option value='2'>Personal</option>
		<option value='3'>Shared</option>
		<option value='4'>Shared to me</option>
		<option value='5'>shared by me</option>
	</select>
</div>
<div class="clear hig20"></div>
<div class="ModuleHig">
<div id="listContent">
<?php if(is_array($ctx->getAlbum['result']) && count($ctx->getAlbum['result'])>0) { ?>
				
					<tal:block tal:content="structure php: this.partial('/index/share-list.html')"/>
				
				<? } else { ?>
					<p style="padding:50px 50px"><b><center>you don't have shared triggers</center></b></p>
									
				<? } ?></div>
<div class="clear"></div>
</div>
<div id="downPagerId" class="paginat" style="padding-right:15px;"></div><div class="clear"></div>
<div class="clear"></div>
</div>
</div></td>
	<td valign="top"><div class="Col">
<tal:block tal:omit-tag="" tal:content="structure php: this.action('index','activity','album')" />
</div></td>
<td valign="top">
<div class="ColBanner">
<div class="ModuleBlock">
<img src="/images/Gads.gif" /><img src="/images/Gads.gif" /></div>
</div></td>
  </tr>
</table>
<!-- Chat Window  -->
<div class="Chatbox">
<div class="Fleft pad_t2"><img src="/images/ChatAviIcon.png" /></div>
<div class="Fleft fontWht pad_115"><strong>Harinath</strong></div>
<div class="Fright"><a href="#" class="ChatBt"><strong>X</strong></a></div>
<div class="Fright"><a href="#" class="ChatBt txt18"><strong>-</strong></a></div>
</div>

<script type="text/javascript">
//<![CDATA[
	pagination = new Array();
	pagination['currentPage'] = "<?=$ctx->getAlbum['currentPage']?>";
	pagination['resultsPerPage'] = "<?=$ctx->getAlbum['resultPerPage']?>";
	pagination['pages'] = "<?= $ctx->getAlbum['pages']?>";  
	pagination['pager'] = '<?=$ctx->getAlbum	["pager"]?>';
	pagination['resultsCount'] = "${getAlbum/resultsCount}" ;
	
	var Params='${params}';
	//alert(pagination['resultsCount']+'  '+Params);
	var requestUrl = "/album/index/pagination/<?php echo $ctx->type; ?>/";
	$(document).ready(function () {
	   setPagination(pagination['resultsCount'],'','downPagerId','','');
	});
function showDiv(type)
{
	if(type == 'r')
	{
		$('#rec').addClass("active");
		$('#sent').removeClass("active");
		$('#sentId').hide();
		$('#recId').show();
	} else {
		//alert(type);
		$('#rec').removeClass("active");
		$('#sent').addClass("active");
		$('#sentId').show();
		$('#recId').hide();
	}

}
function createAlbum()
{
	tb_show('Create Album','/album/index/create-album?&height=400&width=600','');
}
function deleteAlbum(id,action)
{
	//alert(id+"and"+action);return false;
	$.ajax({
			   
			    type: "POST",
				dataType: "json",
			    data: "val="+id+"&action="+action,
			    url: "/album/index/deleteshared-album/",
			    success: function(data){
					location.reload();					
				}
			});
}
function changeStatusFavorite(album_id,status)
{
	//alert(album_id+"and"+status);return false;
	$.ajax({
			   
			    type: "POST",
				dataType: "json",
			    data: "album_id="+album_id+"&status="+status+"&type=album",
			    url: "/album/index/favorite/",
			    success: function(data){
					location.reload();					
				}
			});
}

//]]>
</script>
